package org.wlc.demov3.listener;

import com.wlc.util.JsonResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author 王立朝
 * @date 2022/5/12
 * @description: 消息事件监听器
 */
public class MqEventListener implements EventListener {

    private static final Logger logger = LoggerFactory.getLogger(MqEventListener.class);


    @Override
    public void doEvent(JsonResult jsonResult) {
        logger.info("记录用户{}的摇号结果（MQ）：{}",jsonResult.getCode(),jsonResult.getMsg());
    }
}
